﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infinity.Types.Ranges
{
	public class DecimalRange : Range<decimal>
	{
		public DecimalRange(decimal start = 0, decimal? end = null, decimal by = 1)
			: base(start, end)
		{
			By = by;
		}

		public override decimal Next(decimal value)
		{
			return value + By;
		}

		public decimal By { get; protected set; }
	}
}